home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2004 #9
/
Amiga Plus CD - 2004 - No. 09.iso
/
amigaplus
/
tools
/
amigaos4_only
/
ifxlite
/
imagefx3
/
rexx
/
autofx
/
adjust_rgb.ifx.pre
< prev
next >
Wrap
Text File
|
2004-08-03
|
603b
|
27 lines
/*
* Adjust_RGB.ifx.pre
* PreScript for adjusting Red, Green, and Blue.
* Saves the parameters into the ImpAdjustRGBParameters
* clip variable.
*
* by Steve Tibbett
*/
options results
Defaults=GetClip("ImpAdjustRGBParameters"arg(1));
if (Defaults="") then Defaults="0 0 0"
Parse Var Defaults Red Green Blue
Gadget.1 = 'I/100/16/Red:/'Red
Gadget.2 = 'I/100/30/Green:/'Green
Gadget.3 = 'I/100/44/Blue:/'Blue
ComplexRequest '"RGB Adjustments (-127 to 127)"' 3 Gadget 300 80
IF rc ~= 0 THEN return 10
Defaults=Result.1 Result.2 Result.3
call SetClip("ImpAdjustRGBParameters"arg(1), Defaults);